// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from 'store/index.js'

import VueAwesomeSwiper from 'vue-awesome-swiper'
import './assets/styles/reset.css'
import './assets/styles/border.css'
import './assets/styles/iconfont.css'
import VueLazyLoad from 'vue-lazyload'

import toast from 'components/common/toast'


import Vant from 'vant';
import 'vant/lib/index.css';

//使用Vant
Vue.use(Vant);
//安装toast插件
Vue.use(toast)
//使用懒加载的插件
Vue.use(VueLazyLoad)
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.config.productionTip = false
Vue.prototype.$bus = new Vue()
Vue.use(VueAwesomeSwiper)
Vue.use(ElementUI)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
